{% extends "base.html" %}
{% load markup %}

{% block title %}Reports{% endblock %}

{% block head %}
  <link rel="alternate" type="application/atom+xml" href="{% url reports-feed %}" />
  <script type="text/javascript">
    $(function() {
      viewAllTags();
    });
  </script>
{% endblock %}

{% block primary-content %}
<span class="breadcrumbs"><a href="{% url index %}" title="Home">Home</a> &raquo; Reports</span>
<h2>Reports from {{ location.site.name }}</h2>
<p class="page-intro">The {{ location.site.name }} staff and Common Cause PA will periodically release in-depth reports about the campaign money behind local issues that matter to Philadelphians. Download the full report or read the summary and key findings. With a free profile, we'll let you know when we release a report that includes information about your elected representative.</p>
{% for report in reports.object_list %}
<h3 class="report-teaser"><a href="{% url report report.id %}">{{ report }} {% if report.subtitle %} <span class="subtitle">{{ report.subtitle }}</span>{% endif %}</a></h3>
<div class="report-aside">
{% with report.issues.active as issues %}
{% with report.reps.active as reps %}
  {% include "news/snippets/aside.html" %}
{% endwith %}
{% endwith %}
</div>
<div class="main">
<small class="date-posted">Posted {{ report.pub_date|date }} by {{ report.get_author }}</small>
	{{ report.synopsis|markdown}}
	<!--<p class="read-more" style="margin-bottom:40px;"><a href="{% url report report.id %}">Continue Reading &raquo;</a></p>		-->
</div>	
{% endfor %}

{% if reports.has_next or reports.has_previous %}
<div class="pager clear-left">
  {% if reports.has_next %}
  <div class="float-left"><a href="?page={{ reports.next_page_number }}">&laquo; Older Entries</a></div>
  {% endif %}
  {% if reports.has_previous %}
  <div class="float-right"><a href="?page={{ reports.previous_page_number }}">Newer Entries &raquo;</a></div>
  {% endif %}
</div>
{% endif %}
{% endblock %}

{% block secondary-content %}
  {% include "snippets/signup_or_info.html" %}
  {% include "news/snippets/report_archives.html" %}
  {% include "snippets/reports_and_news.html" %}
{% endblock %}

